<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../../../static/layui/dist/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../static/layui/dist/layuiadmin/style/admin.css" media="all">
    <script src="../../../static/layui/dist/layuiadmin/layui/layui.all.js"></script>
</head>
<body>
        <input type="button" class="btn" value="按钮">
    
    <script>
        layer.open({
        type: 1
        ,offset: "t" //具体配置参考：offset参数项
        ,content: '<textarea id="demo" style="display: none;"  class="layui" ></textarea>'
        ,btn: '关闭全部'
        ,btnAlign: 'c' //按钮居中
        ,shade:0 //不显示遮罩
        ,yes: function(){
            layer.closeAll();
        }
        });
        

        layui.use('layedit', function(){
        var layedit = layui.layedit;
        layedit.build('demo', {
        height: 500, //设置编辑器高度
        });

        });


        </script>
        </body>
        </html>